home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / _NowCalc.au3 < prev    next >
Text File  |  2006-06-17  |  403b  |  10 lines

  1. #include <Date.au3>
  2.  
  3. ; Calculated the number of seconds since EPOCH (1970/01/01 00:00:00) 
  4. $iDateCalc = _DateDiff( 's',"1970/01/01 00:00:00",_NowCalc())
  5. MsgBox( 4096, "", "Number of seconds since EPOCH: " & $iDateCalc )
  6.  
  7. ; Calculated the number of Hours this year 
  8. $iDateCalc = _DateDiff( 'h',@YEAR & "/01/01 00:00:00",_NowCalc())
  9. MsgBox( 4096, "", "Number of Hours this year: " & $iDateCalc )
  10.